﻿<%@ Page Title="" Language="C#" MasterPageFile="~/QLVB/User/User.master" AutoEventWireup="true" CodeFile="SoanThao.aspx.cs" Inherits="QLVB_User_SoanThao" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style3
        {
        width: 185px;
    }
    .style4
    {
            width: 360px;
        }
        .style21
        {
            height: 23px;
        }
        .style22
        {
        width: 40px;
        height: 23px;
    }
        .style27
    {
        width: 110px;
        height: 60px;
    }
        .style28
        {
            width: 110px;
            height: 15px;
        }
        .style29
        {
            width: 40px;
            height: 15px;
        }
        .style30
        {
            width: 40px;
            height: 60px;
        }
        .style31
        {
            width: 110px;
            height: 30px;
        }
        .style32
        {
            height: 30px;
        }
        .style34
        {
            height: 23px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 708px; border: double;">
    <tr>
        <td class="style21" style="120px:; text-align: center;" colspan="2">
            <asp:Label ID="lblTieuDe" runat="server" Text="SOẠN THẢO VĂN BẢN" 
                style="text-decoration: underline"></asp:Label>
            </td>
    </tr>
    <tr>
        <td class="style21" style="120px: ;">
            <asp:Label ID="lblMaPhieuTrinh" runat="server" Text="Số VB (Phiếu trình)"></asp:Label>
        </td>
        <td style="300px: ;" class="style22">
            <asp:ComboBox ID="cmbMaPhieuTrinh" runat="server" AutoPostBack="True" 
                onselectedindexchanged="cmbMaPhieuTrinh_SelectedIndexChanged">
            </asp:ComboBox>
        </td>
    </tr>
    <tr>
        <td class="style21" style="120px: ;">
            <asp:Label ID="lblSoVanBan" runat="server" Text="Số văn bản:"></asp:Label>
        </td>
        <td style="300px: ;" class="style22">
            <asp:TextBox ID="txtSoVanBan" runat="server" 
                style="margin-left: 0px"></asp:TextBox>
            <br />
        </td>
    </tr>
    <tr>
        <td class="style21" style="120px: ;">
            <asp:Label ID="lblTenVanBan" runat="server" Text="Tên văn bản:"></asp:Label>
        </td>
        <td style="300px: ;" class="style22">
            <asp:TextBox ID="txtTenVanBan" runat="server" Width="99%"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="style21" style="120px: ;">
            <asp:Label ID="lblMaLoaiVanBan" runat="server" Text="Loại  văn bản:"></asp:Label>
        </td>
        <td style="300px: ;" class="style22">
            <asp:ComboBox ID="cmbMaLoaiVanBan" runat="server" AutoPostBack="True">
            </asp:ComboBox>
        </td>
    </tr>
    <tr>
        <td class="style21" style="120px: ;" valign="top">
            <asp:Label ID="lblMaHinhThuc" runat="server" Text="Hình thức:"></asp:Label>
        </td>
        <td style="300px: ;" class="style34" valign="top">
            <asp:ComboBox ID="cmbMaHinhThuc" runat="server" AutoPostBack="True">
            </asp:ComboBox>
        </td>
    </tr>
    <tr>
        <td class="style21" style="120px: ;" valign="top">
            <asp:Label ID="lblNoiPhatHanh" runat="server" Text="Nơi phát hành:"></asp:Label>
        </td>
        <td style="300px: ;" class="style34" valign="top">
            <asp:ComboBox ID="cmbMaNoiPhatHanh" runat="server" AutoPostBack="True" 
                onselectedindexchanged="cmbMaNoiPhatHanh_SelectedIndexChanged">
            </asp:ComboBox>
            <asp:TextBox ID="txtTenDonViSoanThao" runat="server" Width="70%" 
                BackColor="#FFFFCC" ForeColor="Red"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="style21" style="120px: ;">
            <asp:Label ID="lblMaTinhChat" runat="server" Text="Tính chất:"></asp:Label>
        </td>
        <td style="300px: ;" class="style22">
            <asp:ComboBox ID="cmbMaTinhChat" runat="server" AutoPostBack="True">
            </asp:ComboBox>
        </td>
    </tr>
    <tr>
        <td class="style21" style="120px: ;" valign="top">
            <asp:Label ID="lblNgayHieuLuc" runat="server" Text="Ngày phát hành VB:"></asp:Label>
        </td>
        <td style="300px: ;" class="style22" valign="top">
            <asp:TextBox ID="txtNgayHieuLuc" runat="server"></asp:TextBox>
            <asp:CalendarExtender ID="txtNgayHieuLuc_CalendarExtender" runat="server" 
                Enabled="True" TargetControlID="txtNgayHieuLuc" Format="dd/MM/yyyy">
            </asp:CalendarExtender>
        </td>
    </tr>
    <tr>
        <td class="style21" style="120px: ;" valign="top">
            <asp:Label ID="lblNgayHetHieuLuc" runat="server" SkinID=" " 
                Text="Ngày CN nhận VB:"></asp:Label>
        </td>
        <td style="300px: ;" class="style22" valign="top">
            <asp:TextBox ID="txtNgayHetHieuLuc" runat="server"></asp:TextBox>
            <asp:CalendarExtender ID="txtNgayHetHieuLuc_CalendarExtender" runat="server" 
                Enabled="True" TargetControlID="txtNgayHetHieuLuc" Format="dd/MM/yyyy">
            </asp:CalendarExtender>
        </td>
    </tr>
    <tr>
        <td class="style27" style="120px: ;" valign="top">
            <asp:Label ID="lblNoiDungVanBan" runat="server" Text="Nội dung văn bản:"></asp:Label>
        </td>
        <td style="300px: ;" class="style30" valign="top">
            <asp:TextBox ID="txtNoiDungVanBan" runat="server" Width="99%" Height="50px" 
                style="text-align: left" TextMode="MultiLine"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="style27" style="120px: ;" valign="top">
            <asp:Label ID="lblNoiDungButPhe" runat="server" 
                Text="Người duyệt, nội dung bút phê:"></asp:Label>
        </td>
        <td style="300px: ;" class="style30" valign="top">
            <asp:TextBox ID="txtNoiDungButPhe" runat="server" Width="99%" Height="50px" 
                style="text-align: left" TextMode="MultiLine"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="style28" style="120px: ;" valign="top">
            <asp:Label ID="lblNoiNhanVanBan" runat="server" Text="Nơi nhận văn bản:"></asp:Label>
        </td>
        <td style="300px: ;" class="style29" valign="top">
            <asp:CheckBox ID="chkToanChiNhanh" runat="server" 
                oncheckedchanged="chkToanChiNhanh_CheckedChanged" Text="Toàn chi nhánh" 
                AutoPostBack="True" />
            <br />
            <asp:CheckBox ID="chkPhong" runat="server" Text="Phòng" 
                AutoPostBack="True" oncheckedchanged="chkPhong_CheckedChanged" />
            <asp:GridView ID="gvPhongNhanVanBan" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" DataKeyNames="MaPhong" Width="100%" 
                Enabled="False" PageSize="20" 
                onpageindexchanging="gvPhongNhanVanBan_PageIndexChanging">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <table style="width: 100%;">
                                <tr>
                                    <td>
                                        <asp:CheckBox ID="chkMaPhong" runat="server" />
                                    </td>
                                    <td align="left" width="400">
                                        <asp:Label ID="lblTenPhong" runat="server" 
                                            Text='<%# Eval("TenPhong") %>'></asp:Label>
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td class="style21" style="120px: ;">
            &nbsp;</td>
        <td style="300px: ;" class="style22" valign="top">
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style21" style="120px: ;">
            <asp:Label ID="lblChonFile" runat="server" Text="Chọn file:"></asp:Label>
        </td>
        <td style="300px: ;" class="style22" valign="top">
            <asp:FileUpload ID="fupdTenFile" runat="server" BackColor="#FFFFCC" />
        </td>
    </tr>
    <tr>
        <td class="style31" style="120px: ;">
            &nbsp;</td>
        <td style="300px: ;" class="style32" valign="top" align="center">
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style31" style="120px: ;">
        </td>
        <td style="300px: ;" class="style32" valign="top">
            <asp:Button ID="btnDongY" runat="server" Text="Đồng ý" Width="100px" 
                onclick="btnDongY_Click" />
            <asp:Button ID="btnDong" runat="server" Text="Đóng" Width="100px" 
                onclick="btnDong_Click" />
        </td>
    </tr>
    </table>
</asp:Content>

